<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>查看流程图</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/resources/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/resources/css/public.css" media="all" />
</head>
<style type="text/css">
	div{
		border-radius: 10px;
		border:2px solid red;
 		padding: 6px; 
	}
</style>
<body class="childrenBody">
 	<img alt="流程图" id="processImg" >
	<div id="flow"></div>

<script type="text/javascript" src="/resources/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['jquery','form','layer','table','laytpl'],function(){
        var $=layui.jquery;
      //通过session取值 
        var taskId=sessionStorage.getItem('taskId');
        $("#processImg").attr("src","/workFlow/viewProcessImageByTaskId?taskId="+taskId+"");
        
    	$.post("/workFlow/viewProcessImageFlowByTaskId?taskId="+taskId+"",function(data){
    		$("#flow").attr("style","position: absolute;left: "+ data.x+ "px;top: "+ data.y+ "px;width: "+ data.width+ "px;height: "+ data.height+ "px");
    		sessionStorage.removeItem('taskId');
    		console.log(data);
    	})
    	
    })
</script>
</body>
</html>